package samples.spring.beans;

/**
 * @author Zi Lai Ye
 * @date 2017/3/23
 */
public class User {
    private int id;

    private String name;

    private int age;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }


    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder(this.getClass().getName());
        sb.append("[");
        sb.append("id=").append(getId()).append(";");
        sb.append("name=").append(getName()).append(";");
        sb.append("age=").append(getAge()).append(";");
        sb.append("]");
        return sb.toString();
    }
}
